package com.xxx.auth.web.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class CreateApplicationForm {

    @Schema(title = "名称", minLength = 1, maxLength = 95)
    @Length(min = 1, max = 95)
    @NotNull
    private String name;

    @Schema(title = "描述", nullable = true, maxLength = 500)
    @Length(max = 500)
    private String description;

    @NotBlank
    @Schema(title = "创建者")
    private String creatorId;

}
